<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<?php get_header(); ?>

<div id="blog">

<div id="post">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
	
		<div class="post_archive">
			
			<?php if ( is_sticky() ) : ?>
				
				<div class="post_featured">FEATURED</div>
				
			<?php endif; ?>
				
			<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
				
			<div class="post_meta">Published <!-- by <?php the_author() ?> --> on <?php the_time('l, F jS, Y') ?> in <?php the_category(', ') ?>.</div>
				
			<div class="post_content"><?php the_content('Read the rest of this entry &raquo;'); ?></div>
			
			<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
						
		</div>

		<?php endwhile; else: ?>
	
		<div class="post_archive">
		
			<h2>Article Not Found</h2>
			<p>Ooops! The article you are looking for does not exist or has been moved.	Please use the search form to find what you are looking for. Thank you!</p>
			
		</div>
		
	<?php endif; ?>
	
	<div id="post_nav">
		
		<?php if (function_exists( 'wp_pagenavi' )) : wp_pagenavi(); ?>
			
			<?php else : ?>
					
				<div class="post_nav_previous"><?php next_posts_link(' &larr; Older Entries ') ?></div>
				
				<div class="post_nav_next"><?php previous_posts_link(' Newer Entries &rarr; ') ?></div>
					
		<?php endif; ?>
		
	</div>

	</div>

	<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
